import { createSlice } from '@reduxjs/toolkit';

interface State {
  qrcodeMobalDow: boolean;
  qrcodeMobalNDow: boolean;
}

const initialState: State = {
  qrcodeMobalDow: false, //生成二维码
  qrcodeMobalNDow: false, //生成二维码
};
export const counterSlice = createSlice({
  name: 'userInfo',
  initialState: {
    ...initialState,
  },
  reducers: {
    setQrcodeMobalDow: (state, action) => {
      state.qrcodeMobalDow = action.payload;
    },
    setQrcodeMobalNDow: (state, action) => {
      state.qrcodeMobalNDow = action.payload;
    },
  },
});
const globalStatusReducer = counterSlice.reducer;
const globalStatusAction = counterSlice.actions;
export { globalStatusReducer, globalStatusAction };
